package com.stylefeng.guns.modular.api.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.stylefeng.guns.modular.api.service.IUserLotteryService;
import com.stylefeng.guns.modular.platform.dao.UserLotteryMapper;
import com.stylefeng.guns.modular.platform.model.UserLottery;

/**
 * <p>
 * 平台用户抽奖记录表 服务实现类
 * </p>
 *
 * @author stylefeng123
 * @since 2018-07-26
 */
@Service
public class UserLotteryServiceImpl extends ServiceImpl<UserLotteryMapper, UserLottery> implements IUserLotteryService {

	@Resource
	private UserLotteryMapper userLotteryMapper;
	
	@Override
	public List<UserLottery> getUserLotterys(Page<UserLottery> page, UserLottery userLottery) {
		return this.baseMapper.getUserLotterys(page, userLottery);
	}

	@Override
	public double selectCountRateByActivityId(Integer activityId) {
		return this.baseMapper.selectCountRateByActivityId(activityId);
	}
	
}
